package cate.game.role.trace.msg;

import cate.game.GameBody;
import cate.game.client.ClientContext;
import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgInput;
import cate.game.client.msg.id.MsgIdBSystem;
import easy.java.dev.note.NoteField;

@ClientMsg(title = "客户端信息上报")
public class ClientInfoReportReq implements MsgInput {
    @NoteField("设备ID")
    public String deviceId;
    @NoteField("客户端版本")
    public String clientVersion;
    @NoteField("平台")
    public String platform;

    @Override
    public MsgConfig conf() {
        return MsgIdBSystem.CLIENT_INFO_REPORT_REQ;
    }

    @Override
    public void execute(GameBody game, ClientContext cc) {
        cc.getRole().getTrace().deviceId = deviceId;
        cc.getRole().getTrace().clientVersion = clientVersion;
        cc.getRole().getTrace().platform = platform;
    }
}
